using System;
using System.Collections.Generic;
using UMC.Data;
namespace UMC.WorkFlow.Entities
{
public partial class TaskLog
{
readonly static Action<TaskLog,object>[] _SetValues=new Action<TaskLog,object>[]{(r,t)=>r.ActivationTime=Reflection.ParseObject(t, r.ActivationTime),(r,t)=>r.Alias=Reflection.ParseObject(t, r.Alias),(r,t)=>r.CommandType=Reflection.ParseObject(t, r.CommandType),(r,t)=>r.Content=Reflection.ParseObject(t, r.Content),(r,t)=>r.CreateTime=Reflection.ParseObject(t, r.CreateTime),(r,t)=>r.Explain=Reflection.ParseObject(t, r.Explain),(r,t)=>r.Id=Reflection.ParseObject(t, r.Id),(r,t)=>r.InstanceId=Reflection.ParseObject(t, r.InstanceId),(r,t)=>r.ShapeAlias=Reflection.ParseObject(t, r.ShapeAlias),(r,t)=>r.ShapeId=Reflection.ParseObject(t, r.ShapeId),(r,t)=>r.ShapeText=Reflection.ParseObject(t, r.ShapeText),(r,t)=>r.ShapeUsername=Reflection.ParseObject(t, r.ShapeUsername),(r,t)=>r.TaskId=Reflection.ParseObject(t, r.TaskId),(r,t)=>r.Username=Reflection.ParseObject(t, r.Username)};
readonly static string[] _Columns=new string[]{"ActivationTime","Alias","CommandType","Content","CreateTime","Explain","Id","InstanceId","ShapeAlias","ShapeId","ShapeText","ShapeUsername","TaskId","Username"};
protected override void SetValue(string name, object obv){
var index = Utility.Search(_Columns,name, StringComparer.CurrentCultureIgnoreCase);
if (index > -1)_SetValues[index](this, obv);
}
protected override void GetValues(Action<String, object> action){
AppendValue(action,"ActivationTime", this.ActivationTime);
AppendValue(action,"Alias", this.Alias);
AppendValue(action,"CommandType", this.CommandType);
AppendValue(action,"Content", this.Content);
AppendValue(action,"CreateTime", this.CreateTime);
AppendValue(action,"Explain", this.Explain);
AppendValue(action,"Id", this.Id);
AppendValue(action,"InstanceId", this.InstanceId);
AppendValue(action,"ShapeAlias", this.ShapeAlias);
AppendValue(action,"ShapeId", this.ShapeId);
AppendValue(action,"ShapeText", this.ShapeText);
AppendValue(action,"ShapeUsername", this.ShapeUsername);
AppendValue(action,"TaskId", this.TaskId);
AppendValue(action,"Username", this.Username);
}

 protected override RecordColumn[] GetColumns(){
 var cols = new RecordColumn[14];
cols[0]= RecordColumn.Column("ActivationTime",this.ActivationTime);
cols[1]= RecordColumn.Column("Alias",this.Alias);
cols[2]= RecordColumn.Column("CommandType",this.CommandType);
cols[3]= RecordColumn.Column("Content",this.Content);
cols[4]= RecordColumn.Column("CreateTime",this.CreateTime);
cols[5]= RecordColumn.Column("Explain",this.Explain);
cols[6]= RecordColumn.Column("Id",this.Id);
cols[7]= RecordColumn.Column("InstanceId",this.InstanceId);
cols[8]= RecordColumn.Column("ShapeAlias",this.ShapeAlias);
cols[9]= RecordColumn.Column("ShapeId",this.ShapeId);
cols[10]= RecordColumn.Column("ShapeText",this.ShapeText);
cols[11]= RecordColumn.Column("ShapeUsername",this.ShapeUsername);
cols[12]= RecordColumn.Column("TaskId",this.TaskId);
cols[13]= RecordColumn.Column("Username",this.Username);
return cols;
}

}
}

